package org.yogurtcat.server.modules.transaction.service;

import java.util.Optional;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.yogurtcat.server.modules.transaction.domain.Transaction;
import org.yogurtcat.server.modules.transaction.domain.TransactionVo;

/**
 * 交易业务接口
 * @author heaven
 *
 */
public interface TransactionService {
	
	/**
	 * 
	 * @return
	 */
	Page<Transaction> list(Optional<TransactionVo> condition, Pageable pageable);

	Transaction save(TransactionVo data);

	void delete(TransactionVo data);
	
}
